<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="js/jquery-1.8.3.js"></script>
<script src="js/select.js"></script>
<script src="js/account.js"></script>
<link href="css/info.css" rel="stylesheet" type="text/css" />
<title>帐号信息</title>
</head>
<body>
	<form action="AccountServlet?action=delete" method="post">
		<div class="content">
			<div class="title">账户信息</div>

			<div class="">
				<table  >
					<tr class="first">
						<td class="roomType1"><input type="checkbox" name="check_all" />
						</td>
						<td class="roomType2">账户使用人</td>
						<td class="roomType3">账户id</td>
						<td class="roomType4">账户密码</td>
						<td class="roomType5">账户等级</td>
					</tr>
					<c:if test="${!empty Emptymsg }">
						<tr>
							<td colspan="5">${Emptymsg }</td>
						</tr>
					</c:if>
					<c:forEach var="account" items="${AccountList }">
						<tr class="record">
							<td><input type="checkbox" name="id" value="${account.id }" /></td>
							<td>${account.username }</td>
							<td class="userId">${account.userid }</td>
							<td>${account.pwd }</td>
							<td>${account.level }</td>
						</tr>
					</c:forEach>
					<tr class="last">
						<td colspan="5"><input type="submit" name="delete" value="删除" />
							&nbsp;&nbsp;&nbsp;&nbsp;双击要修改的行进入修改密码页面</td>
					</tr>
				</table>
			</div>
		</div>
	</form>
	<c:if test="${maxPageNum >= 2 }">
		<div class="page">
			<p >共${maxPageNum }页&nbsp;&nbsp;&nbsp;现在是第${pageIndex }页
			</p>
			<a href="AccountServlet?pageIndex=1&action=showAll">首页</a> <a
				href="AccountServlet?pageIndex=${pageIndex - 1}&action=showAll">上一页</a>
			<form action="AccountServlet?action=showAll" method="post">
				<input type="text" name="pageIndex" size="1" /><input type="submit"
					value="GO" />
			</form>
			<a href="AccountServlet?pageIndex=${pageIndex + 1}&action=showAll">下一页</a>
			<a href="AccountServlet?pageIndex=${maxPageNum }&action=showAll">末页</a>
		</div>
	</c:if>
</body>
</html>